from multiprocessing import Process
import os

def run_proc():
    print('child process (%s)' % os.getpid())


if __name__ == '__main__':
    print('parent process (%s)' % os.getpid())
    p = Process(target=run_proc)
    print('Process will start')
    p.start()
    p.join()
    print('Process ends')